
class Course:
    def __init__(self,number,name,teacher,location):
        self.number = number
        self.name = name
        self.teacher = teacher
        self.__location = location
    def show_info(self):
        print(f"课程编号为:{self.number}")
        print(f"课程名称为:{self.name}")
        print(f"任课老师为:{self.teacher}")
        print(f"上课地点为:{self.__location}")
course = Course(number="101",name="Python程序设计",teacher="石老师",location="笃行楼")
course.show_info()